package com.yibing.test.socketchannel;

import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;

public final class Connection {

	private final SocketChannel channel;
	
	private final ByteBuffer recvBuffer;
	
	private final ByteBuffer sendBuffer;
	
	public Connection (SocketChannel sc, ByteBuffer rb, ByteBuffer sb) {
		channel = sc;
		recvBuffer = rb;
		sendBuffer = sb;
	}

	public SocketChannel getChannel() {
		return channel;
	}

	public ByteBuffer getRecvBuffer() {
		return recvBuffer;
	}

	public ByteBuffer getSendBuffer() {
		return sendBuffer;
	}
	
}
